package edu.mis.core.conf;

import com.jfinal.config.Routes;


import edu.mis.modules.customer.CustomerController;
import edu.mis.modules.food.FoodController;
import edu.mis.modules.index.IndexController;
import edu.mis.modules.role.RoleController;
import edu.mis.modules.staff.StaffController;
import edu.mis.modules.user.UserController;
import edu.mis.modules.room.RoomController;
import edu.mis.modules.type.TypeController;


/**
 * 后台路由
 *
 */
public class AdminRoutes extends Routes{

	@Override
	public void config() {
		add("/", IndexController.class, "/admin");	// 第三个参数为该Controller的视图存放路径，省略则与第一个参数相同
		//如省略第三个参数，则指向“webroot/blog/XXX.html”,会报错找不到页面
		add("/customer", CustomerController.class,"/admin/customer");
		add("/user", UserController.class,"/admin/user");
		add("/role", RoleController.class,"/admin/role");
		add("/staff", StaffController.class,"/admin/staff");
		add("/food", FoodController.class,"/admin/food");
		add("/room", RoomController.class,"/admin/room");
		add("/type", TypeController.class,"/admin/type");
		//add("/goods",GoodsController.class,"/admin/goods");
		//add("/category",CategoryController.class,"/admin/category");
	}

}
